package com.rain.cy.business.controller;

import com.rain.cy.framework.result.Result;
import com.rain.cy.framework.result.ResultUtil;
import com.rain.cy.framework.utils.QiniuOperateUtil;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


/**
 * @author chen_yu
 */

@RestController
@RequestMapping("/api/qiniu")
public class QiNiuController {

    @GetMapping("/upload/token")
    @ApiOperation(value = "获取七牛云上传token", notes = "yu_chen")
    public Result getUploadToken() {
        return ResultUtil.success(QiniuOperateUtil.getUploadToken());

    }
}
